package controller;



import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import service.UserService;
import po.MyUser;
@Controller	
public class UserController {
   @Autowired
   private UserService userService;
   @RequestMapping("/select")
   public String select(Model model){
	   System.out.println("+++++++++++++");
	   List<MyUser> list=userService.serviceSelectAllUser();
	   model.addAttribute("userlist", list);
	   return "userlist";
	   
   }
}
